import request from "./request";
//登录
export const getTokenApi = (data) => request.post("/api/login", data);
//车票/trip/train
export const getTrainApi = (data) => request.post("/api/trip/train", data);
export const getXqApi = (data) =>
  request.get("/api/trip/train/" + data.id, {
    params: {
      start: data.start,
      end: data.end,
    },
  });
